<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器</title>
    <link rel="stylesheet" href="02.css">
</head>
<body>
    <div id="d1">我是div</div>
    <div>我是div</div>
    <p>我是段落</p>
    <h4>我是标题</h4>
    <h4>我是标题</h4>
    <hr>
    <span class="error msg">用户名不能为空</span>
    <span class="error msg">密码必须在6~12位之间</span>
    <span class="success msg">手机号格式正确</span>
    <span class="success msg">邮箱格式正确</span>
    <hr>
    <a href="https://www.baidu.com" target="_blank">超链接1</a>
    <a href="abc">超链接2</a>
    <hr>
    <input type="text" name="uname">
    <input type="text" name="nickname">
    <select name="uname">
        <option value="1"></option>
        <option value="2"></option>
    </select>
    <hr>
    <div id="d2">
        <span>111</span>
        <div>
            <span>222</span>
            <p>测试文字</p>
            <p>我是<span>333</span>段落</p>
        </div>
        <span>444</span>
    </div>
</body>
</html>